import json


class User:

    def __init__(self, name='无名', psw='123'):
        self.name = name
        self.psw = psw

    def __str__(self):
        return f"name={self.name}    psw={self.psw}  {super.__str__()}"

    def json_d(obj):
        return {"name111": obj.name, "psw111": obj.psw}

    def json_l(obj):
        print(type(obj))
        return User(name=obj['name14'],psw=obj['psw123'])





l =json